<!DOCTYPE html>
<html>
<head>
	<title>vue</title>
	<meta charset="UTF-8">
</head>
<body>
	<div id="content"></div>

	<style id="style"></style>

	<script>
		var n = 0;
		var code = `
			body {
				background-color: pink;
			}
			div {
				color: green;
			}
		`
		setInterval(function () {
			content.innerHTML = code.substring(0, n)
			style.innerHTML = code.substring(0, n)
			n++;
		}, 100)
	</script>

</body>
</html>